package byx.container.extension.aop.SimpleTest;

import byx.aop.annotation.After;
import byx.aop.annotation.Before;
import byx.aop.annotation.Filter;
import byx.container.annotation.annotation.Register;
import byx.container.extension.aop.annotation.Enhance;

@Register
@Enhance(A.class)
public class Advice2 {
    @Before
    @Filter(name = "g")
    public void beforeG() {
        System.out.println("before g");
        Flag.s2 += "bg";
    }

    @After
    @Filter(name = "g")
    public void afterG() {
        System.out.println("after g");
        Flag.s2 += "ag";
    }
}
